﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace syc.Produce
{
    public partial class JiHua_WLQD : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                string id = Request.QueryString["ID"];
                string name = Request.QueryString["n"];
                if (string.IsNullOrEmpty(id))
                {
                    Response.End();
                }
                if (string.IsNullOrEmpty(name))
                {
                    name = "生产计划";
                }
                this.ViewState["ID"] = id;
                this.JiHuaMC.Text = name;
                this.SqlDataSource2.SelectCommand = "WuLiaoQingDan";
                this.SqlDataSource2.SelectParameters[0].DefaultValue = id;
                GridView2.DataBind();
            }
            this.Message.Text = "·准备就绪";
        }

        protected void Button_Export_Click(object sender, EventArgs e)
        {

        }

        protected void Button_Back_Click(object sender, EventArgs e)
        {
            Response.Redirect("JiHua.aspx");
        }

    }
}
